package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

//    根据菜品id查找套餐id
    List<Long> getSetmealIdsByDishIds(List<Integer> dishIds);

//    @AutoFill(OperationType.INSERT)
    void addOneSetmealDish(SetmealDish setmealDish);

    void deleteSetmealDishByIds(List<Integer> ids);

    List<SetmealDish> selectSetmealDishBySetmealId(Integer id);
}
